package com.ocom.ugcapi.controller;

import com.ocom.common.constant.WxServiceUrl;
import com.ocom.common.entity.payconfig.EntityOrderEvaluate;
import com.ocom.common.resp.Result;
import com.ocom.ugcapi.client.PayConfigClientService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RestController;


/**
 * @Date: 2024-06-06 czy
 */
@Slf4j
@RestController
public class EvaluateController {

    @Autowired
    private PayConfigClientService payConfigClientService;

    @PostMapping(WxServiceUrl.Url_OrderEvaluate)
    public Result orderEvaluate(@RequestBody EntityOrderEvaluate entityOrderEvaluate) {
        return payConfigClientService.orderEvaluate(entityOrderEvaluate);
    }
}
